﻿(function () {
    'use strict'
    let gatewayUrl = 'https://devcc.egooccs.com'
    let baseUrl = "http://localhost:10013/workorder"
    let profile = 'dev'
    let configMap = {
        dev: {
            // 1产品 2锦程 3苏农 4三湘 5浙能
            itemType: '1',
            // 是否为测试页面
            test: true,
            // 是否为单点登录显示
            ewsSso: false,
            ajaxTimeOut: 20000,
            // 切换页签及关闭页签是否重新获取客户信息并刷新页面
            clearCustomerHistoryInfo: true,
            // 交互页面根据查询出的数据判断否跳转新建页面
            isGoCreateOrder: false,
            // 主题颜色
            themeColor: '',
            baseRestIp: baseUrl,
            workOrderRestIp: baseUrl + "/v1",
            // 锦程老核心系统
            bsrUrl: 'https://contact-business-server-sit.corp.jccfc.com/business-server',
            CRMUrl: gatewayUrl + '/server/v1/console/data/list/CustomerInfoMapper/listForUnion',
            crUrl: 'http://www.baidu.com/yx-server/sp_bp_cusman/unifiedcustview/initCustUnifiedView',
            CRMParams: {
                filters: [{
                    name: "customer_id",
                    cond: 0
                }
                    // { name: "customer_id", value: this.ruleForm.customIdentify, cond: 0 }
                ],
                limit: 100,
                offset: 0,
                tenantId: sessionStorage.getItem('tenantId') || 'default'
            }
        }
    }
    if (window.CONFIG) {
        window.CONFIG = Object.assign(window.CONFIG, configMap[profile])
    } else {
        window.CONFIG = configMap[profile]
    }
}())